{layout name="layout/layoutlist"}
<div class="container">
    <div class="row">
        <div class="arcticlist-right col-md-9">
            <div class="arcticlist-right-list">
                <div class="arcticlist-common">
                    <div class="arcticlist-right-header clearfix">
                        <div class="header-title">
                            <h3>{$column['name']}</h3>
                        </div>
                    </div>
                    <div class="arcticlist-right-body">
                        <div class="advise-form" id="advise-form">
                            <form class="form-horizontal clearfix">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <input type="text" class="advise-form__name form-control" placeholder="真实姓名">
                                        <span class="help-block">请输入真实姓名</span>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <input type="text" class="advise-form__phone form-control" placeholder="联系电话">
                                        <span class="help-block">请输入合法的手机号</span>
                                    </div>
                                </div>
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <input type="text" class="advise-form__title form-control" placeholder="标题">
                                        <span class="help-block">请输入标题</span>
                                    </div>
                                </div>
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <textarea type="text" class="advise-form__content form-control" rows="5"
                                                  placeholder="请您描述建议内容..."></textarea>
                                        <span class="help-block">请输入建议内容</span>
                                    </div>
                                </div>

                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <input type="text" class="advise-form__captcha form-control" name="captcha" placeholder="验证码"
                                               style="width: 30%; display: inline-block;">
                                        <span class="help-block help-captcha">请输入验证码</span>
                                        <img src="" alt="验证码" id="advise-form__captcha"
                                             style="display: inline-block;">
                                    </div>
                                    <script>
                                        /* 验证码切换 */
                                        function captcha_change() {
                                            $.ajax({
                                                url: $("#the_captcha_url").val() + 'captcha/generate',
                                                success: function (data) {
                                                    $('#advise-form__captcha').attr('src' , data);
                                                }
                                            })
                                        }
                                        captcha_change()
                                        $('#advise-form__captcha').click(captcha_change)
                                   </script>
                                </div>

                                <div class="col-sm-12">
                                    <button class="btn advise-form__submit">提交</button>
                                    <button class="btn advise-form__reset" type="reset" style="display: none;">reset
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>